package com.twelve.all.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.twelve.all.widget.MyLoadMoreView;

import java.util.List;

/**
 * Created by 张龙臣 on 2018/10/25.
 * <p>
 * 设置自己的样式。加载中、加载失败、加载完毕
 */

public abstract class MyAdapter<T, K extends BaseViewHolder> extends BaseQuickAdapter<T, K> {

    protected MyLoadMoreView mLoadingView;

    public MyAdapter(int layoutResId, @Nullable List<T> data) {
        super(layoutResId, data);
        mLoadingView = new MyLoadMoreView();
        setLoadMoreView(mLoadingView);
    }

    public MyAdapter(@Nullable List<T> data) {
        super(data);
        setLoadMoreView(new MyLoadMoreView());
    }

    public MyAdapter(int layoutResId) {
        super(layoutResId);
        setLoadMoreView(new MyLoadMoreView());
    }


}
